package gob.pe.mtc.licencias.action;

import gob.pe.mtc.licencias.service.LicenciaService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;

public class ClienteAction extends DispatchAction{
	
	private static final Logger logger = Logger.getLogger(ClienteAction.class);
	
	private LicenciaService licenciaService;
	public void setLicenciaService(LicenciaService licenciaService) {
		this.licenciaService = licenciaService;
	}
	public LicenciaService getLicenciaService() {
		return licenciaService;
	}
	
	public ActionForward lista(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response)throws Exception {
		logger.debug("en la lista");
		licenciaService.listaClietnes();
		return mapping.findForward("lista");
	}
	
	public ActionForward nuevo(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response)throws Exception {
		logger.debug("en el nuevo");
		return mapping.findForward("nuevo");
	}
	
	public ActionForward detalle(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response)throws Exception {
		logger.debug("en el detalle");
		return mapping.findForward("detalle");
	}

	
}
